home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / Fresco / build / Unix / config / cf / sco.cf < prev    next >
Text File  |  1995-07-12  |  6KB  |  174 lines

  1. XCOMM platform:  $XConsortium: sco.cf,v hess Exp $
  2.  
  3. /* SCO MODIFICATION HISTORY
  4.  *
  5.  * S001, 31-Mar-95, hiramc
  6.  *    OK to set -DSCO too, MIT patches use this define for SCO items
  7.  * S000, 28-Apr-94, hess
  8.  *     created from x386.cf
  9.  */
  10.  
  11. /*****************************************************************************
  12.  *              Site-specfic parameters                            *
  13.  *****************************************************************************/
  14.  
  15. /*
  16.  * there are some switches to set appropriate...
  17.  */
  18.  
  19. #define HasGcc            NO    /* doesn't work for SVR4 */
  20. #define HasNdbm            NO    /* correct for GNU dbm & SVR4 */
  21. #define StripInstalledPrograms    YES
  22. #define X386Server        NO
  23. #define ExtensionOSDefines    -DXTESTEXT1
  24. #define MotifBC                NO
  25.  
  26.  
  27. /*****************************************************************************
  28.  *                        Do not change anything below                       *
  29.  *****************************************************************************/
  30.  
  31. /* You must manually compute BootstrapCFlags for initial build */
  32. #define BootstrapCFlags        OSDefines OSRelease
  33.  
  34. #define StandardDefines        OSDefines OSRelease
  35. #define LdCombineFlags        -r
  36.  
  37.  
  38. #define SystemV            YES
  39.  
  40. #define NeedBerklib        YES
  41. #define HasSymLinks        YES
  42.  
  43. /*
  44.  * V/386 Release 3.2
  45.  */
  46. /* #define OSDefines        -DSCO -DBROKEN_FTOL -D_NO_PROTOTYPE -D_SVID
  47.  * changes by hess to the above line.  
  48.  * SCO            changed to "sco"
  49.  * BROKEN_FTOL         not used in the code base
  50.  * _SVID         causes problems with memory.h
  51.  * _NO_PROTOTYPE     avoids problems that we want to find out about.
  52.  * ANSICPP        gets us the correct macro token concat operation.
  53. */
  54. #define OSDefines        -Dsco -DSCO -DSVR4 
  55. #define OSVendor        "The Santa Cruz Operation"
  56. #define LocalLibraries        -lpt
  57. #define SocketLibraries        -lsocket -lmalloc  
  58. #define PosixLibraries        /**/
  59.  
  60. #define SharedLibraryLoadFlags -G 
  61.  
  62. #define OSName            Everest Build Environment
  63. #define OSMajorVersion        5
  64. #define OSMinorVersion        0
  65. #define OSRelease        -DSYSV 
  66.  
  67. /* for the brave 
  68. #define OptimizedCDebugFlags     -O -DUSE_INLINE_CODE 
  69. */
  70. #define OptimizedCDebugFlags     -g
  71.  
  72. /* for hess debug fresco */
  73. #define LibraryCplusplusDebugFlags  -g
  74.  
  75. # define ShlibDefines /**/
  76.  
  77. /* -DLOCALCONN causes build to fail in x11trans.c, looking for  
  78.  * sockaddr_un in the routine FillAddrInfo
  79.  */
  80. # define ConnectionFlags -DTCPCONN -DPSEUDOCONN
  81. /* # define ExtraLibraries SocketLibraries LocalLibraries  PosixLibraries
  82. */
  83. # define ExtraLibraries SocketLibraries 
  84.  
  85. #define InstallCmd sh $(TOP)/config/util/install.sh
  86.  
  87. #define YaccCmd byacc
  88.  
  89. /* Xserver flags */
  90. /* this just causes the common dirs to get built, not a final server */ 
  91. #define XnonServer YES
  92. /* end Xserver flags */
  93.  
  94.  
  95. /* some stuff for Fresco */
  96. REQUIREDLIBS=-lX11 -lm
  97.  
  98. #define SystemLibraries -lm
  99. SYS_LIBRARIES=-lm
  100.  
  101. #define HasCplusplus         YES
  102. #define BuildFresco         YES
  103. #define CplusplusCmd         CC +.cxx -b elf +d 
  104. #define ExtraFilesToClean       *..c *..dbx
  105.  
  106. /* sco CC needs the -o arg escaped to cc's arg list  ( via -ec arg to CC) 
  107.  * what a joke, CC can't name it's object file, and the -ec won't pass 
  108.  * the name along to 'cc' properly 
  109.  */
  110. #define SpecialCplusplusObjectRename(baseobj,basedep,options)           @@\
  111. baseobj.Osuf: basedep.CCsuf                                             @@\
  112.     RemoveFile($@)                                                  @@\
  113.     $(CXX) -c $(CXXFLAGS) options basedep.CCsuf         @@\
  114.     $(MV) `basename basedep`.o $@
  115.  
  116. #define NormalSharedCplusplusObjectRename(baseobj,basedep)           @@\
  117. baseobj.Osuf: basedep.CCsuf                                             @@\
  118.     RemoveFile($@)                                                  @@\
  119.     $(CXX) -c $(CXXFLAGS) basedep.CCsuf                  @@\
  120.     $(MV) `basename basedep`.o $@
  121.  
  122. #define SharedCplusplusLibraryTarget(libname,rev,solist,down,up,notused)                 @@\
  123. AllTarget(Concat(lib,libname.so.rev))                                   @@\
  124.                                                                         @@\
  125. Concat(lib,libname.so.rev):  solist                                     @@\
  126.         $(RM) $@~                                                       @@\
  127.         (cd down; $(LDSO) -o up/$@~ $(SHLIBLDFLAGS) -h $@ solist $(REQUIREDLIBS))              @@\
  128.         $(RM) $@                                                        @@\
  129.         $(MV) $@~ $@                                                    @@\
  130.         $(RM) Concat(lib,libname.so)                                    @@\
  131.         $(LN) $@ Concat(lib,libname.so)                                 @@\
  132.                                                                         @@\
  133. clean::                                                                 @@\
  134.         $(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)
  135.  
  136.  
  137.  
  138. /* end Fresco */
  139.  
  140. XCOMM this version of ld will allow us to build DLL's with C++ modules 
  141. LDSO=$(TOP)/build/Unix/config/util/ldso
  142. /* to make a DLL, look in here for ideas */
  143. #include <sv4Lib.rules>
  144.  
  145. /*
  146.  * Man pages need to be formatted when installed, so override the default
  147.  * imake rules.
  148.  */
  149. #define InstallManPageLong(file,destdir,dest)                           @@\
  150. install.man:: file.man                                                  @@\
  151.     $(RM) destdir/dest.$(MANSUFFIX)                    @@\
  152.     cat file.man | neqn | nroff -man >/tmp/file.man          @@\
  153.     $(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man destdir/dest.$(MANSUFFIX) @@\
  154.     $(RM) /tmp/file.man
  155.  
  156. #define InstallMultipleMan(list,dest)                                   @@\
  157. install.man:: list                                                      @@\
  158.     @case '${MFLAGS}' in *[i]*) set +e;; esac; \                    @@\
  159.     for i in list; do \                                             @@\
  160.         (set -x; \                        @@\
  161.         $(RM) dest/$$i; \                    @@\
  162.         cat $$i | neqn | nroff -man >/tmp/$$i; \          @@\
  163.         $(INSTALL) -c $(INSTMANFLAGS) /tmp/$$i dest/$$i; \    @@\
  164.         $(RM) /tmp/$$i); \                    @@\
  165.     done
  166.  
  167. /* If you have trouble with make bombing out in Xlib, try uncommenting this. */
  168. /* You will not get dependencies as a result, but better than nothing. */
  169. /* #define DependTarget3(srcs1,srcs2,srcs3) */
  170.  
  171. #define ContribDir $(TOP)/contrib
  172.  
  173. XCOMM operating system:  OSName OSVendor
  174.